package com.qijian.maindata.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qijian.maindata.domain.Line;
import com.qijian.maindata.domain.LineBom;
import com.qijian.maindata.domain.Project;
import com.qijian.maindata.domain.query.LineBomQuery;
import com.qijian.maindata.domain.query.LineQuery;
import com.qijian.maindata.domain.vo.LineVo;

import java.util.List;

/**
 * 工艺线路Service接口
 *
 * @author qijian
 * @date 2021-09-03
 */
public interface ILineService extends IService<Line> {

    Page<LineVo> pageVo(Page<Project> page, Wrapper<LineQuery> queryWrapper);

    List<LineVo> listVo(Wrapper<LineQuery> queryWrapper);

    @Override
    boolean save(Line line);

    void saveDetail( List<LineBom> list);

    boolean update(Line line);

    int bomCount(Wrapper<LineBomQuery> queryWrapper);
}
